We need several new sprites to chase our character around the stage. We will set the speed and size for three.

  • Choose a character from . Place sprite along the bottom part of the stage and set the size.
  • From , drag out Set x Speed. Drag Random Integer INSIDE the parenthesis.
  • Select a range. This is determine how fast or slow the snake will move along the stage.

Repeat these steps two more times to add additional sprites that will chase your main character around!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)